/*
 * @Author: Bennent_G
 * @Date: 2024-12-23 16:14:13
 * @LastEditTime: 2025-01-14 15:05:32
 * @Description:
 */
import { createApp } from 'vue';
import'./assets/style/theme.scss';
import './style.css';
import App from './App.vue';
// mock
import './mock';
// pinia
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
// 路由
import routers from './routers';
// UI
import Antd from 'ant-design-vue';
import * as Icons from '@ant-design/icons-vue';
import 'ant-design-vue/dist/reset.css';
// import zhCN from "ant-design-vue/es/locale/zh_CN";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);

app.use(pinia);
app.use(routers);
// app.use(ConfigProvider.config({
// 	locale: zhCN
// }));
app.use(Antd);
app.mount('#app');

// 全局注册所有图标
const icons: any = Icons;
for (const i in icons) {
  app.component(i, icons[i]);
}
